        package com.team.runsfast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description:
 * @Author: 邢朋辉
 * @Date: 2022/09/22 13:09:50
 */
@Data
@TableName("t_orderlog")
@NoArgsConstructor
public class OrderLog {
    /***/
    @TableId(type = IdType.AUTO)
    private Long id;
    /***/
    private Long oid;
    /**订单状态 1.未支付 待付款 2.已支付 待发货 3.已发货 待收货 4.已收货 待确认 5.已确认 待评价 6.已评价 7.取消 8.超时*/
    private Integer flag;
    /***/
    private String info;
    /***/
    private Date ctime;

    public OrderLog(Long oid, Integer flag, String info) {
        this.oid = oid;
        this.flag = flag;
        this.info = info;
        this.ctime=new Date();
    }
}